﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IRC.IRepairClouds.DataLayer
{
    public sealed class Singleton<T> where T : new()
    {
        Singleton() { }

        public static T Instance
        {
            get { return Creator._Instance; }
        }

        class Creator
        {
            static Creator() { }
            private Creator() { }
            internal static readonly T _Instance = new T();
        }
    }
}
